<%@ Page Language="C#" MasterPageFile="~/MasterPages/manager/dialog.master" AutoEventWireup="true" CodeFile="Options.aspx.cs" Inherits="manager_websites_Options" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>Website Options</h2>
<asp:FormView id="fvOptions" runat="server" DataSourceID="odsOptions" DataKeyNames="ID" OnItemInserted="fvOptions_ItemInserted" OnItemInserting="fvOptions_ItemInserting">
        <EditItemTemplate>
            MasterPage:
            <asp:TextBox ID="MasterPageTextBox" runat="server" Text='<%# Bind("MasterPage") %>'></asp:TextBox><br />
            HTMLContent:
            <asp:TextBox ID="HTMLContentTextBox" runat="server" Text='<%# Bind("HTMLContent") %>'></asp:TextBox><br />
            LastUpdated:
            <asp:TextBox ID="LastUpdatedTextBox" runat="server" Text='<%# Bind("LastUpdated") %>'></asp:TextBox><br />
            Title:
            <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox><br />
            ID:
            <asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>'></asp:TextBox><br />
            GUID:
            <asp:TextBox ID="GUIDTextBox" runat="server" Text='<%# Bind("GUID") %>'></asp:TextBox><br />
            State:
            <asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>'></asp:TextBox><br />
            WebsiteID:
            <asp:TextBox ID="WebsiteIDTextBox" runat="server" Text='<%# Bind("WebsiteID") %>'></asp:TextBox><br />
            OptionValue:
            <asp:TextBox ID="OptionValueTextBox" runat="server" Text='<%# Bind("OptionValue") %>'></asp:TextBox><br />
            OptionTitle:
            <asp:TextBox ID="OptionTitleTextBox" runat="server" Text='<%# Bind("OptionTitle") %>'></asp:TextBox><br />
            ObjectType:
            <asp:TextBox ID="ObjectTypeTextBox" runat="server" Text='<%# Bind("ObjectType") %>'></asp:TextBox><br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                Text="Update"></asp:LinkButton>
            <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                Text="Cancel"></asp:LinkButton>
        </EditItemTemplate>
        <InsertItemTemplate>
            Option:
            <asp:TextBox ID="OptionTitleTextBox" runat="server" Text='<%# Bind("OptionTitle") %>'></asp:TextBox><br />
            Value:
            <asp:TextBox ID="OptionValueTextBox" runat="server" Text='<%# Bind("OptionValue") %>'></asp:TextBox><br />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                Text="Insert"></asp:LinkButton>
            <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                Text="Cancel"></asp:LinkButton>
        </InsertItemTemplate>
        <ItemTemplate>
            <asp:Button ID="btnNew" runat="server" CommandName="New" Text="New Option" />
        </ItemTemplate>
        <EmptyDataTemplate>
            <asp:Button ID="btnNew" runat="server" CommandName="New" Text="New Option" />
        </EmptyDataTemplate>
    </asp:FormView><BR /><asp:GridView id="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="odsOptions" DataKeyNames="ID">
        <Columns>
            <asp:BoundField DataField="OptionTitle" HeaderText="Option" SortExpression="OptionTitle" />
            <asp:BoundField DataField="OptionValue" HeaderText="Value" SortExpression="OptionValue" />
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
        </Columns>
    </asp:GridView> <asp:ObjectDataSource id="odsOptions" runat="server" InsertMethod="Insert" TypeName="TanashCMS.Business.WebsiteOption" DeleteMethod="Delete" SelectMethod="List" OldValuesParameterFormatString="original_{0}" DataObjectTypeName="TanashCMS.Business.WebsiteOption" UpdateMethod="Update" OnInserting="odsOptions_Inserting">
        <SelectParameters>
            <asp:QueryStringParameter QueryStringField="wid" Type="Int32" Name="WebsiteID" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

